/*	$OpenBSD: ntohs.S,v 1.3 2015/05/29 09:25:28 uebayasi Exp $	*/

/* Written by Artur Grabowski. Public Domain */

#include <machine/asm.h>

ENTRY(ntohs)
	movl    %edi,%eax
	xchgb   %ah,%al
	ret
END(ntohs)
